<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
	<title>易买网 - 首页</title>
	<link type="text/css" rel="stylesheet" href="css/style.css" />
	<script type="text/javascript" src="scripts/function.js"></script>
</head>
<body>
<%@include file="nav.jsp"%>
<div id="position" class="wrap">
	您现在的位置：<a href="productSelectByPage">易买网</a> &gt; 在线留言
</div>
<div id="main" class="wrap">
	<%@include file="left.jsp"%>
	<div class="main">
		<div class="guestbook">
			<h2>全部留言</h2>
			<ul>
				<c:forEach var="views" items="${list}">
				<li>
					<dl>
						<dt>${views.content}</dt>
						<dd class="author">网友：${views.name} <span class="timer">${views.time}</span></dd>
						<dd>${views.review}</dd>
					</dl>
				</li>

				</c:forEach>

			</ul>
			<div class="clear"></div>
			<div class="pager">
				<ul class="clearfix">
					<c:if test="${pageIndex !=1 }">
						<li><a href="ViewSelectByPage2?pageIndex=1">首页</a></li>
						<li><a href="ViewSelectByPage2?pageIndex=${pageIndex-1}">上一页</a></li>
					</c:if>
					<li class="current">${pageIndex}/${maxPage}</li>
					<c:if test="${pageIndex != maxPage}">
						<li><a href="ViewSelectByPage2?pageIndex=${pageIndex+1}">下一页</a></li>
						<li><a href="ViewSelectByPage2?pageIndex=${maxPage}">末页</a></li>
					</c:if>
				</ul>
			</div>
			<div id="reply-box">
				<form id="regForm" action="SubmitView" method="post" onsubmit="return checkForm(this)">
					<table>
<%--						<tr>--%>
<%--							<td class="field">昵称：</td>--%>
<%--							<td><input class="text" type="text" name="guestName" onfocus="FocusItem(this)" onblur="CheckItem(this);"  /><span></span></td>--%>
<%--						</tr>--%>
						<tr>
							<td class="field">留言内容：</td>
							<td><textarea name="guestContent" onfocus="FocusItem(this)" onblur="CheckItem(this);"></textarea><span></span></td>
						</tr>
						<tr>
							<td></td>
							<td><label class="ui-blue"><input type="submit" name="review" value="提交留言" /></label></td>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</div>
	<div class="clear"></div>
</div>
<div id="footer">
	Copyright &copy; 2022 卓京教育 All Rights Reserved. 湘ICP证1001号
</div>
</body>
</html>
